home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / Object / ObjectView.m < prev    next >
Text File  |  1995-06-12  |  471b  |  35 lines

  1.  
  2. #import "ObjectView.h"
  3.  
  4. @implementation ObjectView
  5.  
  6. - initFrame:(NXRect *)frameRect
  7. {
  8.  
  9.     self = [super initFrame:frameRect];
  10.          
  11. return self;
  12. }
  13.  
  14.  
  15. - drawSelf: (const NXRect *)rects :(int)rectCount
  16. {
  17.    float xscale,yscale;
  18.   NXRect framerect;
  19.  
  20.      if(strcmp([NXApp appName] , "InterfaceBuilder") ==0){
  21.     [self getFrame:&framerect];
  22.  
  23.     xscale = framerect.size.width/500.0;
  24.     yscale = framerect.size.height/300.0;
  25.     
  26.             PSWTitle(xscale, yscale);
  27.     }
  28.  
  29.    return self;
  30. }
  31.  
  32.  
  33.  
  34. @end
  35.